package com.lz.config;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * @描述：
 * @作者：lizhao
 * @创建时间： 2024/8/26 下午5:06
 * </pre>
 **/
@Component
public class MyMetaObjectHandler implements MetaObjectHandler {
    @Override
    public void insertFill(MetaObject metaObject) {
        this.setFieldValByName("name","我是少主", metaObject);
    }

    @Override
    public void updateFill(MetaObject metaObject) {

    }
}
